package level
{
	import org.flixel.*;
	
	import enemy.*;
	import interaction.*;
	import item.*;
	import treasure.*;
	
	/**
	 * ...
	 * @author JAC
	 */
	public class Level_4 extends GameState
	{
		override public function create():void
		{
			super.create();
			
			_maze.load(StaticMaze.level_4);
			
			_player.spawnAt(14, 15);
			
			var t1:Teleporter = new Teleporter(5, 5);
			var t2:Teleporter = new Teleporter(12, 13);
			t1.other = t2;
			t2.other = t1;
			addInteraction(t1);
			addInteraction(t2);
			
			t1 = new Teleporter(23, 5);
			t2 = new Teleporter(16, 17);
			t1.other = t2;
			t2.other = t1;
			addInteraction(t1);
			addInteraction(t2);
			
			addItem(new Boulder(2, 5));
			addItem(new Boulder(8, 5));
			
			addItem(new SpeedBoost(26, 5));
			addItem(new SpeedBoost(20, 5));
			
			addTreasure(new LootBag(12, 2));
			addTreasure(new LootBag(14, 9));
			addTreasure(new LootBag(16, 2));
			addTreasure(new LootBag(18, 15));
			addTreasure(new LootBag(10, 15));
			
			addEnemy(new Robber(0, 19));
			addEnemy(new Robber(28, 19));
			addEnemy(new Exorcist(10, 20));
			addEnemy(new Exorcist(18, 20));
			
			LoggerWrapper.logLevelStart(7, "Level_4");
		}
	}
}